package com.twu.biblioteca.util;

import java.io.InputStream;
import java.util.Scanner;

/**
 * User: hwpeng
 * Date: 7/6/13
 * Time: 3:53 PM
 * Project: twu-biblioteca-hwpeng
 */
public class ConsoleUtil {

    private static Scanner scanner;

    public static void show(String content) {
        System.out.print(content);
    }

    public static Integer readInt(InputStream in) {
        scanner = new Scanner(in);
        return scanner.nextInt();
    }

    public static String readLine(InputStream in) {
        scanner = new Scanner(in);
        return scanner.nextLine();
    }
}
